//
//  DirectMCell.h
//  Megafon
//
//  Created by teng jianzhao on 12-2-9.
//  Copyright 2012 广州市易杰数码科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DirectMsgData.h"
#import "AsyncImageView.h"

#define ShowTextFontD 18.0
#define CuspW        5

@interface DirectMCell : UITableViewCell {
	UILabel *showText;				//显示发送或接收的文字
	NSIndexPath *indexPath;         //当前Cell所在Index
	AsyncImageView *headImage;	        //头像
	UIImageView *bgView;			//左气泡 右气泡
	
	UIView *shadowBG;				//头像的阴影
	
	UIImageView *sendStateView;          //发送状态
	
	DirectMsgData *dirtMsg;  
	BOOL isRecv;                    //是收到的YES， 发送的NO
}
@property (nonatomic, retain) DirectMsgData *dirtMsg;

- (CGFloat)calCellHeight;
- (void)refreshCurrentCellView;
- (void)initCellWithDirtMsg:(DirectMsgData *)dMsg;

@end
